home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / bash_completion.d / debconf next >
Text File  |  2008-10-10  |  293b  |  13 lines

  1. have debconf-show &&
  2. _debconf_show()
  3. {
  4.         local cur
  5.  
  6.         COMPREPLY=()
  7.         cur=${COMP_WORDS[COMP_CWORD]}
  8.         COMPREPLY=($( compgen -W '--listowners --listdbs --db=' -- $cur ) \
  9.                         $( apt-cache pkgnames -- $cur ) )
  10. }
  11. complete -F _debconf_show debconf-show
  12.  
  13.